/*-----------------------------------------------File Info------------------------------------------------
** File Name:               key.h
** Last modified date:      2016.07.22
** Last version:            V0.1
** Description:             
**--------------------------------------------------------------------------------------------------------            
** Created date:            2016.09.07
** author:                  YLY
** Version:                 V0.1
** Descriptions:            键盘扫描处理函数
**--------------------------------------------------------------------------------------------------------
*/

#ifndef _KEY_H_
#define	_KEY_H_

#include "userConfig.h"


//#define KEY_DEBUG	GLOBAL_DBG
#ifndef KEY_DEBUG
	#define KEY_DEBUG(...)
#endif

/* 定义按键 */
enum eKeyL
{
	KEYL_0 = 0x00,
	KEYL_1,
	KEYL_2,
	KEYL_3,
	KEYL_4,
	KEYL_5,
	KEYL_6,
	KEYL_7,
	KEYL_8,
};
/* 定义按键 */
enum eKey
{
	
	KEYH_0 = 0x10,
	KEYH_1,
	KEYH_2,
	KEYH_3,
	KEYH_4,
	KEYH_5,
	KEYH_6,
	KEYH_7,
};

enum eKeyTaskMsg
{
	TOUCH_KEY_INIT = 0,
	KEY_TASE_KEY_MSG,
	KEY_TASE_CHECK_KEY_MSG
};

extern void keyInit(void);
extern uint32_t getSwValue(void);
#endif	//	_KEY_H_








